package com.nanshenycd.controller.front;

import com.nanshenycd.dao.PersonalDao;
import com.nanshenycd.pojo.Personal;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Api(description  = "跳转展示页面")
public class AboutShowController {

    @Autowired
    private PersonalDao personalDao;

    @GetMapping("/about")
    @ApiOperation(value = "跳转展示页面")
    public String about(Model model){
        Personal person = personalDao.getPersonInfo();
        model.addAttribute("person",person);
        return "about";
    }
}
